package com.hj.enroll.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;

public class User {

    @JsonProperty(value = "id")
    private int id;
    @JsonProperty(value = "name")
    private String name;
    @JsonProperty(value = "major")
    private String major;
    @JsonProperty(value = "ways")
    private String ways;
    @JsonProperty(value = "introduce")
    private String introduce;
    @JsonProperty(value = "comment")
    private String comment;

    public User() {
    }

    public User(int id, String name, String major, String ways, String introduce, String comment) {
        this.id = id;
        this.name = name;
        this.major = major;
        this.ways = ways;
        this.introduce = introduce;
        this.comment = comment;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getWays() {
        return ways;
    }

    public void setWays(String ways) {
        this.ways = ways;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }


    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", major='" + major + '\'' +
                ", ways='" + ways + '\'' +
                ", introduce='" + introduce + '\'' +
                ", comment='" + comment + '\'' +
                '}';
    }
}
